-
Notifications
You must be signed in to change notification settings - Fork 114
chore(ups): remove no responders #2863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ups): remove no responders #2863
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
commit: |
// Normal path: use database for request/response | ||
tracing::debug!(%subject, "using database path for request"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical Issue: Removing Listener Check Causes Resource Waste
The removal of the listener check (lines 326-364) introduces a significant performance and resource problem. Without this check, the system will:
- Create unnecessary database connections
- Wait for the full timeout period for every request to subjects with no listeners
- Waste resources instead of failing fast
While consolidating error types is reasonable, the optimization logic should be preserved. Consider modifying the existing check to return RequestTimeout
instead of NoResponders
when no listeners are found:
if !has_listeners {
tracing::warn!(%subject, "no listeners found for subject");
return Err(errors::Ups::RequestTimeout.build().into());
}
This maintains the performance optimization while achieving the goal of error type consolidation.
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
95f5243
to
8b94417
Compare
f957fbb
to
0678b46
Compare
Claude encountered an error —— View job I'll analyze this and get back to you. |
Claude encountered an error —— View job I'll analyze this and get back to you. |
Merge activity
|
Fixes RVT-5116 Fixes RVT-5117
Fixes RVT-5116
Fixes RVT-5117